<?php

class FieldSpecTable extends CF_TableAjUpdate {


}

function show_listview($ar_data,$fieldspec,$ar_lookups = '',$filters = ''){

	$tbl_fs = new FieldSpecTable($fieldspec,$ar_data,'fieldstbl');
	$tbl_fs->set_actionpage("fieldspecs_ctl.php");
	$tbl_fs->setLookups($ar_lookups);
	$html_fs = $tbl_fs->maketable();
	?>
			<link type="text/css" href="../css/humanity/jquery-ui-1.8.9.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="../js/jquery-ui-1.8.9.custom.min.js"></script>
		<script type="text/javascript" src="../CF_JS/CF_SyncVal.js"></script>
	<table>
	<?php
	echo $tbl_fs->make_simple_heading();
	echo $html_fs;
?>

</table>
<script type="text/javascript">
<?php print $tbl_fs->make_supportJS() ?>
</script>

<?php
$ab = new CF_AddBox($fieldspec, 'fieldspecs', $filters, 'fieldspecs_ctl.php');
//$ab_form = $ab->make_add_box();
//print $ab_form;
$ab->set_lookup_lists($ar_lookups);
$filter_set = CF_FilterReciever::filters_to_set($filters);

?>

<form name='fieldspec_add' action='fieldspecs_ctl.php' method='post'>
<input type='hidden' name='mode' value='add' />
<table>
<?php print $ab->add_form($fieldset,$filters,$filter_set); ?>
</table>
<input type='submit' value='Add' />
</form>


<?php
}

?>